#!\bin\bash
# i3 panel config. Powerline style.

panel_fifo="/tmp/i3_lemonbar_${USER}"
geometry="x14"
## This needs a fork of lemonbar.
font="Terminess Powerline-8"
#iconfont="terminusicons2mono-8"
iconfont="fontawesome-10"
res_w=$(xrandr | grep "current" | awk '{print $8a}')

# Alarm settings
cpu_alert=75                        # % cpu use
net_alert=5                         # K net use
temp_alert="160"                    # F heat use

# update setting, in seconds (conky update in i3_lemonbar_conky
upd_vol=3                           # Volume update
upd_mail=150                        # Mail check update
upd_mpd=5                           # MPD song update
upd_ext_ip=600                      # External IP update

# color definitions 
color_back="#FF1D1F21"              # Default background
color_fore="#FFC5C8C6"              # Default foreground
color_head="#FFB5BD68"              # Background for first element
color_sec_b1="#FF282A2E"            # Background for section 1
color_sec_b2="#FF454A4F"            # Background for section 2
color_sec_b3="#FF60676E"            # Background for section 3
color_icon="#FF979997"              # For icons
color_mail="#FFCE935F"              # Background color for mail alert
color_chat="#FFCC6666"              # Background color for chat alert
color_cpu="#FF5F819D"               # Background color for cpu alert
color_net="#FF5E8D87"               # Background color for net alert
color_disable="#FF1D1F21"           # Foreground for disable elements
color_wsp="#FF8C9440"               # Background for selected workspace
## Need to tinker with these:
color_bat_out="#ffdc322f"           # Background for 0-10 battery
color_bat_low="#ffd33682"           # Background for 10-30 battery
color_bat_mid="#ffb58900"           # Background for 30-50 battery
color_bat_high="#ff859900"          # Forground for 70-100 battery icon
color_temp="#ffdc322f"              # Backgroud for high temp

### Solarized ### {{{
#$base03:    #002b36;
#$base02:    #073642;
#$base01:    #586e75;
#$base00:    #657b83;
#$base0:     #839496;
#$base1:     #93a1a1;
#$base2:     #eee8d5;
#$base3:     #fdf6e3;
#$yellow:    #b58900;
#$orange:    #cb4b16;
#$red:       #dc322f;
#$magenta:   #d33682;
#$violet:    #6c71c4;
#$blue:      #268bd2;
#$cyan:      #2aa198;
#$green:     #859900;
### End Solarized ### }}}

#default space between sections
#if [ ${res_w} -gt 1024 ]; then
if [ ${res_w} -gt 1366 ]; then
  #stab='  '
  stab=' '
else
  #stab=' '
  stab=''
fi

# Char glyps for powerline fonts
sep_left=""                        # Powerline separator left
sep_right=""                       # Powerline separator right
sep_l_left=""                      # Powerline light separator left
sep_l_right=""                     # Powerline light sepatator right

# Icon glyphs from Font Awesome
icon_clock=""                      # Clock icon
icon_cpu=""                        # CPU icon
icon_mem=""                        # MEM icon
icon_dl=""                         # Download icon
icon_ul=""                         # Upload icon
icon_vol=""                        # Volume icon
icon_hd=""                         # HD / icon
icon_home=""                       # HD /home icon
icon_mail=""                       # Mail icon
icon_chat=""                       # IRC/Chat icon
icon_music=""                      # Music icon
icon_prog=""                       # Window icon
icon_contact=""                    # Contact icon
icon_wsp=""                        # Workspace icon
icon_bat_plug=""                   # Battery icon, may add level indicator? and plugged in?
icon_bat0=""                       # Battery icon
icon_bat1=""                       # Battery icon
icon_bat2=""                       # Battery icon
icon_bat3=""                       # Battery icon
icon_bat4=""                       # Battery icon
icon_temp=""                       # Temperature icon
icon_wifi=""                       # Wifi percent icon
icon_local_eth=""                  # Local IP eth icon
icon_local_wifi=""                 # Local IP wifi icon
icon_local_out=""                  # Local IP out icon
icon_ext_ip=""                     # External IP
##                                 
